package com.qw.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qw.gulimall.common.utils.PageUtils;
import com.qw.gulimall.order.entity.OrderEntity;
import com.qw.gulimall.order.vo.*;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * ????
 *
 * @author qw
 * @email 13793700519@163.com
 * @date 2022-03-17 23:47:42
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    PayVo getOrderPay(String orderSn);

    OrderEntity getOrderByOrderSn(String orderSn);

    String handlePayResult(PayAsyncVo asyncVo);

    String asyncNotify(String notifyData);

    void closeOrder(OrderEntity orderEntity);

    PageUtils queryPageWithItem(Map<String, Object> params);
}

